package cn.zwx.business.order;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description 订单启动类
 * @author zhangwenxue
 * @createTime 2020/10/15 11:05
 **/
@SpringBootApplication
@EnableFeignClients(basePackages = {"cn.zwx.*.clients"})
@EnableCircuitBreaker
@EnableDiscoveryClient
@MapperScan(basePackages = {"cn.zwx.business.order.mapper"})
@EnableTransactionManagement
public class BusinessOrderApplication {
    private static final Logger logger =  LoggerFactory.getLogger(BusinessOrderApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(BusinessOrderApplication.class, args);
        logger.info("订单服务启动成功!!!!");
    }

}
